using Budgeteer.Services;
using Budgeteer.Services.Common;
using Budgeteer.Services.DataProviders;

namespace Budgeteer.TaskRunner
{
    public static class Tasks
    {
        public static void ImportTransactionData()
        {
            ConfigService config = new ConfigService();
            CategoryService categoryService = new CategoryService(new CategoryDataProvider(Config.ConnectionString),config);
            ChargeService chargeService = new ChargeService(new ChargeDataProvider(Config.ConnectionString),config);

            chargeService.ImportTransactionData(categoryService.GetCategoryByChargeDescription);
        }
    }
}